Skip to content

chore: push types in their own module, one push reservation, current status docs - #38

Merged
metalwarrior665 merged 1 commit into
masterfrom
chore/cleanup
Nov 14, 2026
Merged

metalwarrior665 merged 1 commit into
masterfrom
chore/cleanup

Conversation

@metalwarrior665

Copy link
Copy Markdown
Member

Cleanup, no new features.

  • Push types: PushOptions, PushResult, PushError, InvalidItem and OnInvalidItems move from schema_validation to a new push module. The crate root re-exports them as before, so only the apify::schema_validation::… paths change; instagram-rs doesn't use those.
  • One push reservation:
    • push_data and push_data_and_charge_events now reserve their charges with reserve_push, as the buffered pushes and push_data_with already did, instead of a copy of that logic.
    • The dataset is opened before the reservation, so failing to open it leaves nothing reserved.
    • One edge changes: an empty push reports event_charge_limit_reached when the budget is already spent, as the other pushes do. Before, it reported false.
  • Docs:
    • The README and docs/plan.md said the SDK had not run on the platform and that the live and e2e suites were waiting for a token. Both are out of date.
    • The doc links point to the repositories' new location.
    • A broken intra-doc link in log.rs is fixed, so cargo doc has no warnings.

Not changed:

  • Git dependency URLs (the crawlee-rs pin, the template's apify dependency, the CI patch and the e2e test): changing a git URL makes it a different source to Cargo. If instagram-rs pinned crawlee-rs through both the old and the new URL, it would get two copies of crawlee. They should move in one coordinated change across the repos.
  • apify::new_client and Actor::new_client: I left both in place. One builds a client from a Configuration; the other uses the run's configuration with another token.

Generated by Claude Code

…status docs

- The options and results of pushes (PushOptions, PushResult,
  PushError, InvalidItem, OnInvalidItems) move from schema_validation
  to a push module; the crate root exports them as before.
- push_data and push_data_and_charge_events reserve their charges with
  reserve_push, as the buffered pushes and push_data_with do, instead
  of a copy of it. An empty push now reports a spent budget as the
  others do.
- README and plan: the SDK runs Actors on the platform; the live and
  e2e suites run in CI. Links point to the repositories' new location.
- A broken intra-doc link in the log module.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0148RYR4BTGyCYHENSRZjC3S
@metalwarrior665
metalwarrior665 merged commit feb56b9 into master Nov 14, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants